package com.swensen.game.data;

import java.util.List;

public enum GameState {
	INSTANCE;
	
	private BoardData boardData;
	
	public static void loadGameState(BoardData boardData) {
		INSTANCE.boardData = boardData;
	}
	
	public static void loadTiles(String tilePath) {
		INSTANCE.boardData.setTileSet(tilePath);
	}
	
	public static BoardData getGenericBoardData() {
		return INSTANCE.boardData;
	}
	
	public static TileSet getCurrentTileSet() {
		return INSTANCE.boardData.getTileSet();
	}
	
	public static List<Tile> getTiles() {
		return INSTANCE.boardData.getTileSet().getTiles();
	}
	
	public <T extends BoardData> T getBoardData() {
		return (T)boardData;
	}
}
